function getQuery(variable)
{
       var query = window.location.search.substring(1);
       var vars = query.split("&");
       for (var i=0;i<vars.length;i++) {
               var pair = vars[i].split("=");
               if(pair[0] == variable){return pair[1];}
       }
       return(false);
}

function $(id){
    return document.getElementById(id);
}

function getFormData(param){
	let formData = new FormData();

    for(var fieldName in param){
        formData.append(fieldName, param[fieldName]);
    }
}

function getUploadConfig(){
	let config = {
              headers: {
                'Content-Type': 'multipart/form-data'
              }
            }
    return config;
}